<?php

namespace app\common\validate;

use think\Validate;

class AuthGroup extends Validate
{


    /**
     * 验证规则
     */
    protected $rule = [
        'name'  => 'require|unique:AuthGroup',
        'rules'   => 'require'
    ];

    /**
     * 提示消息
     */
    protected $message = [
        
    ];

    /**
     * 字段描述
     */
    protected $field = [
    ];

    /**
     * 验证场景
     */
    protected $scene = [
    ];

    public function __construct(array $rules = [], $message = [], $field = [])
    {
        $this->field = [
            'name'  => '角色名称',
            'rules'   => '权限'
        ];
        parent::__construct($rules, $message, $field);
    }

}
